<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['cats']=array (
  'columns' =>
  array (
    'id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => app::get('tbdata')->_('自增id'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'cid' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('分类ID'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
	  'filtertype'=>'number',
      'filterdefault' => true,
      'default_in_list' => true,
    ),
    'parent_cid' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('父分类ID'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
 	  'order'=>2,
	  'filtertype'=>'number',
      'filterdefault' => true,
     'default_in_list' => true,
    ),
    'name' =>
    array (
      'type' => 'varchar(100)',
      'required' => true,
      'is_title' => true,
      'default' => '',
      'label' => app::get('tbdata')->_('分类名称'),
      'width' => 110,
      'editable' => false,
	  'order'=>3,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'is_parent' =>
    array (
      'type' => 'bool',
      'required' => true,
      'default' => 'false',
      'label' => app::get('tbdata')->_('是否有子结点'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
      'filtertype' => 'yes',
      'filterdefault' => true,
    ),
    'status' =>
    array (
      'type' =>
      array (
        'normal' => app::get('tdata')->_('正常'),
        'deleted' => app::get('tdata')->_('已删除'),
      ),
      'required' => true,
      'label' => app::get('tbdata')->_('状态'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'sort_order' =>
    array (
      'type' => 'number',
      'label' => app::get('tbdata')->_('排序'),
      'width' => 110,
      'editable' => false,
      'default' => 0,
      'in_list' => true,
       'default_in_list' => true,
   ),
    'cat_path' =>
    array (
      'type' => 'varchar(100)',
      'default' => ',',
      'label' => app::get('tbdata')->_('分类路径(从根至本结点的路径,逗号分隔,首部有逗号)'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'props_download_time' =>
    array (
      'type' => 'time',
      'label' => app::get('tbdata')->_('属性最后下载时间'),
      'width' => 110,
      'required' => true,
	  'default'=>0,
      'editable' => false,
      'in_list' => true,
    ),
    'products_download_time' =>
    array (
      'type' => 'time',
      'label' => app::get('tbdata')->_('产品最后下载时间'),
      'width' => 110,
      'required' => true,
	  'default'=>0,
      'editable' => false,
      'in_list' => true,
    ),
    'addon' =>
    array (
      'type' => 'longtext',
      'editable' => false,
    ),
    'child_count' =>
    array (
      'type' => 'number',
      'default' => 0,
      'required' => true,
      'editable' => false,
    ),
    'disabled' =>
    array (
      'type' => 'bool',
      'required' => true,
      'default' => 'false',
      'label' => app::get('tbdata')->_('是否可用'),
      'width' => 110,
    ),
  ),
  'comment' => app::get('tbdata')->_('类别表'),
  'index' =>
  array (
    'ind_cat_path' =>
    array (
      'columns' =>
      array (
        0 => 'cat_path',
      ),
    ),
    'ind_parent_cid' =>
    array (
      'columns' =>
      array (
        0 => 'parent_cid',
      ),
    ),
	'ind_products_download_time' =>
    array (
      'columns' =>
      array (
        0 => 'products_download_time',
      ),
    ),
  ),
  'version' => '$Rev: 41329 $',
);
